package com.molyfun.parents.rest.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.molyfun.parents.rest.BaseListResponse;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:29/09/2017.
 */

public class ZhiboListResponse extends BaseListResponse<ZhiboListResponse.ZhiboBean> {

    public static class ZhiboBean implements Parcelable {

        /**
         * id : d7b661c92db54934b757d399f92b9b16
         * liveid : z1.molyfun-zhibo.5a0bd95dbad7cf56880471c2
         * livehls : http://pili-live-hls.molyfun.com/molyfun-zhibo/5a0bd95dbad7cf56880471c2.m3u8
         * livertmp : rtmp://pili-live-rtmp.molyfun.com/molyfun-zhibo/5a0bd95dbad7cf56880471c2
         * createdatetime : 1510725971000
         * userid : f50f7073598842c9895f73d086a33dfa
         * imgroupid : 32849456594945
         */

        private String id;
        private String liveid;
        private String livehls;
        private String livertmp;
        private long createdatetime;
        private String userid;
        private String imgroupid;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getLiveid() {
            return liveid;
        }

        public void setLiveid(String liveid) {
            this.liveid = liveid;
        }

        public String getLivehls() {
            return livehls;
        }

        public void setLivehls(String livehls) {
            this.livehls = livehls;
        }

        public String getLivertmp() {
            return livertmp;
        }

        public void setLivertmp(String livertmp) {
            this.livertmp = livertmp;
        }

        public long getCreatedatetime() {
            return createdatetime;
        }

        public void setCreatedatetime(long createdatetime) {
            this.createdatetime = createdatetime;
        }

        public String getUserid() {
            return userid;
        }

        public void setUserid(String userid) {
            this.userid = userid;
        }

        public String getImgroupid() {
            return imgroupid;
        }

        public void setImgroupid(String imgroupid) {
            this.imgroupid = imgroupid;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.liveid);
            dest.writeString(this.livehls);
            dest.writeString(this.livertmp);
            dest.writeLong(this.createdatetime);
            dest.writeString(this.userid);
            dest.writeString(this.imgroupid);
        }

        public ZhiboBean() {
        }

        protected ZhiboBean(Parcel in) {
            this.id = in.readString();
            this.liveid = in.readString();
            this.livehls = in.readString();
            this.livertmp = in.readString();
            this.createdatetime = in.readLong();
            this.userid = in.readString();
            this.imgroupid = in.readString();
        }

        public static final Creator<ZhiboBean> CREATOR = new Creator<ZhiboBean>() {
            @Override
            public ZhiboBean createFromParcel(Parcel source) {
                return new ZhiboBean(source);
            }

            @Override
            public ZhiboBean[] newArray(int size) {
                return new ZhiboBean[size];
            }
        };
    }

}
